<?php
	//Check to see if there is a valid session 
	$SessionInfo = $SSO->isValidSession("index.php?action=login", $SSO->getSessionInformation());	
	
	//Check to see if the user has rights to be on LivingWeb
	$PageRights = array('ADMIN', 'USER');
	$UserRoles = $Security->ValidateUser($SessionInfo['username'], $AppID, $PageRights, 1);
	
	//Grab the user info
	$UserInfo = $User->GetUserInfo($SessionInfo['username']);	
?>
<table cellpadding="0" cellspacing="2" border="0" style="border:1px solid #D8DA85;background:#FEFFCD;" width="100%">
	<tr>
		<td>
			<table cellpadding="3" cellspacing="0" width="100%" style="border-bottom:3px double #D8DA85;">
				<tr>
					<td><span class="TB1">Page Properties</span></td>
					<td align="right"><a class="L1" href="index.php?action=edit&edit_action=edit_props&PID=<?php print $_GET['PID']; ?>">Edit Properties</a></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td align="center">
			<table cellpadding="0" cellspacing="0" width="90%">
				<tr>	
					<td><span class="T1"><em>Title: </em><?php print $row['PageTitle']; ?>&nbsp;&nbsp;&nbsp;<em>(PID <?php print $row['PageID']; ?>)</em></span></td>
					<td><span class="T1"><em>Ministry: </em><?php print $row['MinistryName']; ?></span></td>
				</tr>
        <tr>
          <td><span class="T1"><em>Show Navigation?  </em></span><?php if($row['DisplayNavigation'] == 1) { print "Yes"; } else { print "No"; } ?></td>
        </tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>
			<table cellpadding="0" cellspacing="0" style="border-top:1px dashed #D8DA85;" width="100%">
				<tr>
					<td align="center">
						<span class="T0">Created by <em><?php global $User; print $User->GetFullName($row['CreatedBy']); ?></em> on <em><?php print date("m/d/Y g:i:sA",strtotime($row['CreatedDate'])); ?></em></span></td>
					<td align="center">
						<span class="T0">Last Edit by <em><?php global $User; print $User->GetFullName($row['LastEditBy']); ?></em> on <em><?php print date("m/d/Y g:i:sA",strtotime($row['LastEditDate'])); ?></em></span></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
